<template>
  <div>
    <top-label v-model="index">
      <span :slot="0">备品备件管理</span>
    </top-label>
    <el-row>
      <keep-alive>
        <spare-parts v-if="index===0"></spare-parts>
      </keep-alive>
    </el-row>
  </div>
</template>

<script>
import TopLabel from "~/components/TopLabel";
import SpareParts from "~/views/safety-management/spare-parts-management/SpareParts";
export default {
  name: "SparePartsManagement",
  components:{
    TopLabel,
    SpareParts
  },
  data(){
    return{
      index:0
    }
  }
}
</script>

<style scoped>
</style>
